from django.db import models
from sirogi.users.models import SirogiUser
from sirogi.states.models import State

class Document(models.Model):

	owner  = models.ForeignKey(SirogiUser, related_name='owner')
	state = models.ForeignKey(State)
	colaborators = models.ManyToManyField(SirogiUser, blank=True)
	numDoc	= models.IntegerField(max_length=8, unique=True)
	date = models.DateTimeField('Date')
	visto = models.TextField()
	considerando = models.TextField()
	resuelve = models.TextField()
	path  = models.CharField(max_length=200, blank=True)


	#def __unicode__(self):
		#return self.question
	
	def Get_Owner(self):
		return self.owner

	def Get_Path(self):
		return self.path
	
	def Get_numDoc(self):
		return self.numDoc
	
	def Get_id(self):
		return self.id
	
	def Get_visto(self):
		return self.visto
	
	def Get_considerando(self):
		return self.considerando
	
	def Get_resuelv(self):
		return self.resuelve
	
	def Get_date(self):
		return self.date
